package com.stu.reflection.factory;

public interface IMessage {
  void send();
}

class LocalMessage implements IMessage {
  @Override
  public void send() {
    System.out.println("发送本地消息");
  }
}

class NetMessage implements IMessage {
  @Override
  public void send() {
    System.out.println("发送网络消息");
  }
}